<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>线路管理</title>
    <link href="./js/layui/css/layui.css" rel="stylesheet" type="text/css" media="screen">
    <link href="./css/common.css" rel="stylesheet" type="text/css" media="screen">
    <script src="./js/layui/layui.js"></script>
    <script src="../config.js" type="text/javascript"></script>
    <script src="./js/lineManage.js"></script>
</head>
<body class="white">
<div class="query" style="margin-top: 10px">
    <div class="layui-form">
        <label>路线编号:</label>
        <div class="layui-input-inline">
            <input id="lineNumber" name="lineNumber" type="text" class="layui-input">
        </div>
        <label>路线名称:</label>
        <div class="layui-input-inline">
            <input id="searchText" name="searchText" type="text" class="layui-input">
        </div>
        <button class="layui-btn " lay-submit lay-filter="search" id="reload">搜索</button>
        <button class="layui-btn layui-btn-primary " onclick="reload()">重置</button>
        <button type="button" class="layui-btn" id="toAdd">
            <i class="layui-icon layui-icon-add-1"></i> 新增
        </button>
    </div>
    <table class="layui-table" id="lineTable" lay-filter="lineTable"></table>
</div>
</body>
<div class="layui-main " style="clear: both;display: none " id="point_main">
    <button type="button" class="layui-btn add-btn" id="addPoint">确定</button>
    <table class="layui-table" id="pointTable" lay-filter="pointTable"></table>
</div>
<!--新增线路-->
<div class="layui-main " style="clear: both;display: none " id="line_main">
    <div class="headlines-wrap">
        <div class="headlines layui-main">
            <div class="layui-form">
                <form class=" form-inline">
                    <input type="text" id="lineId" name="lineId" style="display: none;">
                    <div class="layui-form-item">
                        <label class="layui-form-label">路线名称:</label>
                        <div class="layui-input-block d-flex"  >
                            <input type="text" id="lineName" name="lineName" lay-verify="required" autocomplete="off" class="layui-input wd550">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">巡检总时长:</label>
                        <div class="layui-input-block d-flex" >
                            <input type="text" id="lineInspectTime" name="lineInspectTime" lay-verify="required" autocomplete="off" class="layui-input wd550">
                            <label class="pt10 pl5">分钟</label>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">误差时长:</label>
                        <div class="layui-input-block d-flex" >
                            <input type="text" id="lineInspectErrorTime" name="lineInspectErrorTime" lay-verify="required" autocomplete="off" class="layui-input wd550">
                            <label class="pt10 pl5">分钟</label>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <button type="button" class="layui-btn" id="toAddPoint">
                            <i class="layui-icon">&#xe608;</i> 添加点位
                        </button>
                        <!--<button type="button" class="layui-btn" id="toDeletePoint">
                            <i class="layui-icon">&#xe608;</i> 删除
                        </button>-->
                    </div>
                    <div class="layui-form-item">
                        <table class="layui-table" id="pointList" lay-filter="pointList"></table>
                    </div>
                    <div class="layui-form-item" >
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="addBtn" id="addBtn">确定</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

</div>

</html>